# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=tweeny
pkgver=3.1.1
pkgrel=0
pkgdesc="Modern C++ tweening library"
url="https://mobius3.github.io/tweeny"
arch="noarch"
license="MIT"
makedepends="cmake doxygen"
subpackages="$pkgname-doc"
source="https://github.com/mobius3/tweeny/archive/v$pkgver/tweeny-v$pkgver.tar.gz"
options="!check" # no test suite

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DTWEENY_BUILD_DOCUMENTATION=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="3bffa130364512c9bb91b2cba73fc55833eafd9841e35dfccec68d6f865d571dfdb526c0af16124cdf9ce25b9c9f1a6097122075067e84746ede1b733e81d74b  tweeny-v3.1.1.tar.gz"
